<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let  arr=[4,22,66,6,20]

      let flag=true;

      for(let i=0; i<arr.length; i++){
        if(arr[i]%2 !==0){
          flag=false;
          break;
        }
      }
       if(flag){
            console.log("全是偶数")
       }else{
        console.log("全不是偶数");
       }

    </script>
</body>
</html>